for x in range(100,1000):
    a=x//100
    b=(x//10)%10
    c=x%10
    if a**3+b**3+c**3==x:
        print("{}是水仙花数".format(x))
